package leetcode.simple.q349;

import leetcode.util.TimeUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import java.util.Arrays;

public class TestMain {
    long endTime;
    Solution solution = new Solution();
    long startTime;
    int[] nums1 = {4,9,5};
    int[] nums2 = {9,4,9,8,4};
    int[] result;

    @Before
    public void before(){
        startTime = TimeUtils.currentTimeMillis();
    }
    Solution2 solution2 = new Solution2();
    @Test
    public void testSolution(){

        result = solution2.intersection(nums1, nums2);
//        result = Main.intersect2(nums1, nums2);
    }

    @After
    public void after(){
        endTime = TimeUtils.currentTimeMillis();
        System.out.println(Arrays.toString(result));
        System.out.println("耗时：" + (endTime - startTime));
    }
}
